package com.byxy.computer.student.entity;

import java.util.Date;
import java.util.UUID;

import com.fasterxml.jackson.annotation.JsonFormat;

public class HomeWork {
	
	private String filePath;
	private String fileName;

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	private float fileSize;

	private String id = UUID.randomUUID().toString().replaceAll("-", "");

	private String uid;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") 
	private Date uploadTime = new Date();

	public HomeWork() {
		super();
	}

	public HomeWork(String uid, String filePath,String fileName, float fileSize) {
		super();
		this.fileSize = fileSize;
		this.filePath = filePath;
		this.fileName = fileName;
		this.uid = uid;
	}

	public String getFilePath() {
		return filePath;
	}

	public float getFileSize() {
		return fileSize;
	}
	public String getId() {
		return id;
	}

	public String getUid() {
		return uid;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public void setFileSize(float fileSize) {
		this.fileSize = fileSize;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

}
